unit FormServicoGeralUnit;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, Data.DB,
  Vcl.Mask, Vcl.DBCtrls;

type
  TFormServicoGeral = class(TForm)
    Label1: TLabel;
    DBEdit1: TDBEdit;
    DataSource1: TDataSource;
    Label2: TLabel;
    DBEdit2: TDBEdit;
    Label3: TLabel;
    DBEdit3: TDBEdit;
    Label4: TLabel;
    DBEdit4: TDBEdit;
    RadioGroupSexo: TRadioGroup;
    Label5: TLabel;
    ComboBox1: TComboBox;
    procedure FormShow(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FormServicoGeral: TFormServicoGeral;

implementation

{$R *.dfm}

uses DataModule_Servico;

procedure TFormServicoGeral.FormShow(Sender: TObject);
begin
  if DM_Servico.CDSServicoSEXO.AsString <> 'M' then
  begin
     RadioGroupSexo.ItemIndex := 0;
  end
  else
  begin
     RadioGroupSexo.ItemIndex := 1;
  end;

  ComboBox1.Text := DM_Servico.CDSServicoSERVICO.AsString;

end;

end.
